package view;

import javax.swing.JPanel;

@SuppressWarnings("serial")
public class PanelHolder extends JPanel {

	private static PanelHolder single;

	private PanelHolder() {

		setLayout(null);

		add(PanelSelector.getInstance());
	}

	public static PanelHolder getInstance() {
		if (single == null) {
			single = new PanelHolder();
		}
		return single;
	}

	public static void selfDestroy() {
		single = null;
	}
}
